Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak gh_releases #287

Open
wants to merge 4 commits into
base: 18.x
Choose a base branch
from

Conversation

JedMeister
Copy link
Member

@JedMeister JedMeister commented Jan 11, 2024

Change gh_release default behaviour to only show latest stable by default, also removing pre-release versions (assuming that they contain alpha|beta|rc keywords) from the output. Previous behaviour can still be obtained via gh_release --all --pre-release <user>/<repo>:

Usage: gh_releases [OPTIONS] <user>/<repo>

Options:
    -h|--help   show this help and exit
    -a|--all    show all (stable) versions, not just the most recent
    -p|--pre-release
                include alpha, beta and rc versions

Env Vars:
    # used for github api
    GITHUB_USER
    GITHUB_USER_TOKEN

    # retain temp files and set x
    DEBUG

    # omit tags or releases in output respectively if set
    NO_TAGS
    NO_RELEASES

Note: Setting GITHUB_USER and GITHUB_USER_TOKEN environment variables are
      recommended. If not set, multipage results may be unreliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant